package com.xiaoyuzhou.untity;

import java.util.ArrayList;
import java.util.List;

/**
 * 封装了从网上取得的包含七天详细数据的天气预报实体
 * Array(0) = "省份 地区/洲 国家名（国外）"
	Array(1) = "查询的天气预报地区名称"
	Array(2) = "查询的天气预报地区ID"
	Array(3) = "最后更新时间 格式：yyyy-MM-dd HH:mm:ss"
	Array(4) = "当前天气实况：气温、风向/风力、湿度"
	Array(5) = "第一天 空气质量、紫外线强度"
	Array(6) = "第一天 天气和生活指数"
	Array(7) = "第一天 概况 格式：M月d日 天气概况"
	Array(8) = "第一天 气温"
	Array(9) = "第一天 风力/风向"
	Array(10) = "第一天 天气图标 1"
	Array(11) = "第一天 天气图标 2"
	Array(12) = "第二天 概况 格式：M月d日 天气概况"
	Array(13) = "第二天 气温"
	Array(14) = "第二天 风力/风向"
	Array(15) = "第二天 天气图标 1"
	Array(16) = "第二天 天气图标 2"
	......
	......每一天的格式同：Array(12) -- Array(16)*/
public class WeatherHeap{
	/** 哪一个城市的天气预报,用于显示在widget上，格式：北京-海淀区  */
	private String location;
	/**省份*/
	private String province;
	/**城市，地级市或直辖市名*/
	private String city;
	/**地区。可能是地级市或城区*/
	private String district;
	private String cityCode;
	/**最后更新时间 格式：yyyy-MM-dd HH:mm:ss*/
	private String updateTime;
	/**哪一天的天气*/
	private String date;
	/**当前天气气温*/
	private String currentTemperature;
	/**当前天气风力*/
	private String currentWind;
	/**当前天气湿度*/
	private String currentHumidity;
	/**空气质量*/
	private String airQuality;
	/**紫外线强度 */
	private String ziwaixian;
	/**生活指数*/
	private String lifeSuggestion;
	private String weatherIcon1;
	private String weatherIcon2;
	/**未来N天的天气预报，不包括当天*/
	private List<Weather> forecast = new ArrayList<Weather>();
	
	public Weather newForecast() {
		return new Weather();
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getDistrict() {
		return district;
	}
	public void setDistrict(String district) {
		this.district = district;
	}
	public String getCityCode() {
		return cityCode;
	}
	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}
	public String getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	public String getCurrentTemperature() {
		return currentTemperature;
	}
	public void setCurrentTemperature(String currentTemperature) {
		this.currentTemperature = currentTemperature;
	}
	public String getCurrentWind() {
		return currentWind;
	}
	public void setCurrentWind(String currentWind) {
		this.currentWind = currentWind;
	}
	public String getCurrentHumidity() {
		return currentHumidity;
	}
	public void setCurrentHumidity(String currentHumidity) {
		this.currentHumidity = currentHumidity;
	}
	public String getAirQuality() {
		return airQuality;
	}
	public void setAirQuality(String airQuality) {
		this.airQuality = airQuality;
	}
	public String getZiwaixian() {
		return ziwaixian;
	}
	public void setZiwaixian(String ziwaixian) {
		this.ziwaixian = ziwaixian;
	}
	public String getLifeSuggestion() {
		return lifeSuggestion;
	}
	public void setLifeSuggestion(String lifeSuggestion) {
		this.lifeSuggestion = lifeSuggestion;
	}
	public String getWeatherIcon1() {
		return weatherIcon1;
	}
	public void setWeatherIcon1(String weatherIcon1) {
		this.weatherIcon1 = weatherIcon1;
	}
	public String getWeatherIcon2() {
		return weatherIcon2;
	}
	public void setWeatherIcon2(String weatherIcon2) {
		this.weatherIcon2 = weatherIcon2;
	}
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	public List<Weather> getForecast() {
		return forecast;
	}
	@Override
	public String toString() {
		return "WeatherHeap [location=" + location + ", province=" + province
				+ ", city=" + city + ", district=" + district + ", cityCode="
				+ cityCode + ", updateTime=" + updateTime + ", date=" + date
				+ ", currentTemperature=" + currentTemperature
				+ ", currentWind=" + currentWind + ", currentHumidity="
				+ currentHumidity + ", airQuality=" + airQuality
				+ ", ziwaixian=" + ziwaixian + ", lifeSuggestion="
				+ lifeSuggestion + ", weatherIcon1=" + weatherIcon1
				+ ", weatherIcon2=" + weatherIcon2 + ", forecast=" + forecast
				+ ", newForecast()=" + newForecast() + ", getLocation()="
				+ getLocation() + ", getProvince()=" + getProvince()
				+ ", getCity()=" + getCity() + ", getDistrict()="
				+ getDistrict() + ", getCityCode()=" + getCityCode()
				+ ", getUpdateTime()=" + getUpdateTime()
				+ ", getCurrentTemperature()=" + getCurrentTemperature()
				+ ", getCurrentWind()=" + getCurrentWind()
				+ ", getCurrentHumidity()=" + getCurrentHumidity()
				+ ", getAirQuality()=" + getAirQuality() + ", getZiwaixian()="
				+ getZiwaixian() + ", getLifeSuggestion()="
				+ getLifeSuggestion() + ", getWeatherIcon1()="
				+ getWeatherIcon1() + ", getWeatherIcon2()="
				+ getWeatherIcon2() + ", getDate()=" + getDate()
				+ ", getForecast()=" + getForecast() + ", getClass()="
				+ getClass() + ", hashCode()=" + hashCode() + ", toString()="
				+ super.toString() + "]";
	}
	
}
